package com.luchao.back.mapper;

import com.luchao.back.pojo.Brands;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BrandsMapper {

    List<Brands> getBrandsByPage(@Param("startNum") int startNum, @Param("pageSize") int pageSize);

    int addBrands(Brands brands);

    int editBrands(Brands brands);

    long getBrandsCount();

    int checkBrands(String bname);

    List<Brands> getAllBrands();

    int batchChangeState(List<Brands> brands);

    List<Brands> getAllBrandsForView();
}
